package com.mofang.ticketing.user.serve.project.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2022/5/13 17:17
 */
@Data
@ApiModel(value = "项目新增")
public class ProjectAddReqDTO implements Serializable {

    private static final long serialVersionUID = -2587750286636653258L;

    @NotBlank(message = "项目名称不能为空")
    @Size(max = 50, message = "项目名称最大50字符")
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @NotNull(message = "项目类型不能为空")
    @ApiModelProperty(value = "项目类型 1=商户类型，2=地区类型")
    private Integer projectType;

    @ApiModelProperty(value = "商户IDjson 项目类型=1时有值")
    private String merchantJson;

    @ApiModelProperty(value = "省市区json 项目类型=2时有值")
    private String areaJson;

    @ApiModelProperty(value = "备注")
    @Size(max = 50, message = "项目名称最大50字符")
    private String remark;

}
